<template>
    <div class="bottom-bar flex">
        <div class="bottom-item-left">
          <p><img src="/img/detail/icon01.png" alt=""></p>
          <p>客服</p>
        </div>
        <div class="bottom-item-left">
          <p><img src="/img/detail/icon02.png" alt=""></p>
          <p>店铺</p>
        </div>
        <div class="bottom-item-left">
          <p><img src="/img/detail/icon03.png" alt=""></p>
          <p>收藏</p>
        </div>
        <div class="cart btn" @click="addCart()">加入购物车</div>
        <div class="buy btn">购买</div>
    </div>
</template>

<script>
    export default {
        name: "BottomBar",
        methods:{
            addCart(){
                this.$emit('addCart')
            }
        }
    }
</script>

<style scoped>
  .bottom-bar{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 49px;
    background-color: white;
    font-size: 13px;
    /*z-index: 9999;*/
  }
  .bottom-item-left{
    width: 17%;
    text-align: center;
  }
  img{
    width: 22px;
    height: 22px;
    margin: 9px 0 3px 0;
    vertical-align: middle;
  }
  .cart{
    background-color: #FFD306;
  }
  .buy{
    background-color: var(--color-high-text);
    color: white;
  }
  .btn{
    width:25%;
    text-align: center;
    line-height: 49px;
    /*border: 1px solid black;*/
  }

</style>
